/*
 * @Date: 2023-05-17 10:38:06
 * @LastEditors: Chuying
 * @LastEditTime: 2023-07-05 15:41:37
 * @Description: 
 */
// import 'package:ceo_app/page/home/index.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:ceo_app/config/router.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'page/login/index.dart';
import 'package:ceo_app/page/tabs/index.dart';

void main() {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: const MyHome(),
      theme: ThemeData(
        primarySwatch: Colors.purple,
        canvasColor: Colors.white,
      ),
      builder: EasyLoading.init(),
      initialRoute: '/',
      onGenerateRoute: routers,
      debugShowCheckedModeBanner: false, //  隐藏dugger
    );
  }
}

class MyHome extends StatelessWidget {
  const MyHome({super.key});

  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context, designSize: const Size(375, 812));
    return const Index();
    // return const LoginPage();
  }
}
